#ifndef _PLAYER_H_
#define _PLAYER_H_

#include "GameOject.h"
#include "Bullet.h"
#include "Convert.h"
#include "Input.h"

#define CONTRA_RIGHT (currentStatus_)
#define CONTRA_LEFT(A) (PlayerStatus)(A + PlayerStatus::NUMBER_OF_STATUS)

class CPlayer : public CGameOject
{
private:
	CBullet*		currentBullet_;
	PlayerStatus	currentStatus_;
	bool			isJumped;
public:
	CPlayer();
	~CPlayer();

	void loadSprites();
	void Update(DWORD deltaTime);
	void Render();

	void UpdateKeyBoard(CInput* inputDevice);
	void setDirection(Direction direction);
	void setStatus(PlayerStatus status);

	//Check if player is on the ground.
	bool isLanded();
};
#endif